package com.cssl.util;

import com.cssl.mapper.DtsGoodsMapper;
import com.cssl.mapper.DtsUserMapper;

public class SaveUserSearch {
    public static Integer save(String keyword, Integer userId, DtsUserMapper userMapper){
       Integer saveResult= userMapper.saveSearch(keyword,userId);
       return saveResult;
    }

    public static Integer isExist(String keyword, Integer userId, DtsUserMapper userMapper){
        Integer integer = userMapper.searchIsExist(userId, keyword);
        return integer;
    }
}
